package com.lwt.dao;

import com.lwt.entity.Stock;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @program: seckill
 * @author: 关键我是大怪
 * @create: 2021-11-11 20:32
 */
@Mapper
@Repository
public interface StockMapper {

    //根据商品的id 查询库存信息的方法
    Stock checkStock(Integer id);

    //根据商品的ID 扣除库存
    int updateSale(Stock stock);
}
